package com.calm.singleton;

import android.util.Log;

public class LazySingleton {
    private static final String TAG = LazySingleton.class.getSimpleName();
    private LazySingleton(){
        Log.e(TAG,"LazySingleton init");
    }
    private static LazySingleton INSTANCE;
    public static LazySingleton getInstance(){
        if(INSTANCE == null){
            INSTANCE = new LazySingleton();
        }
        return INSTANCE;
    }
    public void sayHello(String name){
        Log.e(TAG,"Hello "+name+",nice to meet you !");
    }
}
